<?php

namespace app\api\model;

use app\common\model\Tag as TagModel;

class Tag extends TagModel
{
    /**
     * 获取标签
     */
    public static function getInTagId($tagIds)
    {
        return self::whereIn('tag_id', $tagIds)->select();
    }

    public static function getByType($type)
    {
        return self::where('typedata', $type)->select();
    }
}
